<?xml version="1.0" encoding="UTF-8"?>
<!--
  Created by IntelliJ IDEA.
  User: lukman
  Date: 7/2/11
  Time: 1:10 PM
-->
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
        >

<h:head>

</h:head>

<body>
<ui:composition>
    <div id="header">
        <div id="logo">Anasit</div>
    </div>
    <!-- header -->
    <h:form>
        <div class="headerMenu">
            <p:toolbar>
                <p:toolbarGroup align="left">
                    <p:commandButton type="push" value="Home"/>
                    <p:commandButton type="push" value="Patient"/>
                    <p:commandButton type="push" value="Record"/>
                    <p:commandButton rendered="#{p:ifGranted('admin')}" type="push" value="Admin"/>
                </p:toolbarGroup>
                <p:divider/>
                <p:toolbarGroup align="right">
                    <p:menuButton zindex="10" value="Welcome:#{p:remoteUser()}">
                        <p:menuitem value="Logout" action="#{anasitUserBean.logoutUser}"/>
                        <p:menuitem value="Edit Details" url="http://www.primefaces.org/showcase"/>
                    </p:menuButton>
                </p:toolbarGroup>
            </p:toolbar>
        </div>
    </h:form>
</ui:composition>
</body>

</html>